#ifndef TCP_H
#define TCP_H

#include <QObject>
#include <QQmlApplicationEngine>
#include <QQmlComponent>
#include "PluginInfo.h"

class Tcp : public QObject
{
    Q_OBJECT
public:
    Tcp();
    static Tcp* instance();
    void load(QQmlApplicationEngine* engine);
    Q_INVOKABLE QQmlComponent* getBtnComponent();
    Q_INVOKABLE QQmlComponent* getPageComponent();
signals:
    void loadComplete();
private:
    PluginInfo *m_info;
};

#endif // TCP_H
